package com.jtbd.constants;

import lombok.Getter;

public enum ResponseCodeEnum {

    SUCCESS(200, "成功"),

    ERROR(500, "失败"),
    ERROR_ACCOUNT_BAN(505, "账号已经被禁用啦！"),
    ERROR_LOGIN(500, "登录失败"),

    NOT_FOUND(404, "未找到"),

    NOT_LOGIN(401, "未登录"),

    NOT_AUTH(403, "未授权"),

    NOT_SUPPORT(405, "不支持"),

    NOT_ALLOW(406, "不允许"),

    NOT_EXIST(407, "数据不存在"),

    NOT_SUPPORT_METHOD(408, "不支持的方法"),

    NOT_SUPPORT_PARAM(409, "不支持的参数"),

    NOT_SUPPORT_PARAM_VALUE(410, "不支持的参数值");

    @Getter
    private final int code;
    @Getter
    private final String msg;

    ResponseCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
